{% extends 'base.html' %}
{% block title %}
    搜索列表
{% endblock %}
{% block content %}
    <div class="col-md-5 col-md-offset-3">
        <table class="table table-bordered">
            <tr>
                <th>序号</th>
                <th>文章标题</th>
                <th>作者</th>
                <th>发布日期</th>
            </tr>
            {% for article in articles %}
                <tr>
                    <td>{{ loop.index }}</td>
                    <td><a href="{{ url_for('article.articleDetail') }}?articleId={{ article[0] }}">{{ article[2] }}</a>
                    </td>
                    <td>{{ article[8] }}</td>
                    <td>{{ article[6] }}</td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}